import request from '../utils/request'

// 查询任务列表
export const queryList = (params) => {
  return request({
    method: 'GET',
    url: 'app/rest/process-definitions',
    params
  })
}

export const queryStartForm = (processDefinitionId) => {
  return request({
    method: 'GET',
    url: `app/rest/process-definitions/${processDefinitionId}/start-form`
  })
}